CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(MSRCR)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

FIND_PACKAGE(OpenCV REQUIRED)
LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lib)

INCLUDE_DIRECTORIES(./)
INCLUDE_DIRECTORIES(./src)


SET(LIB_MSRCR_SOURCE 
	./src/MSRCR.cpp
	./src/MSRCR.h)
ADD_LIBRARY(msrcr SHARED ${LIB_MSRCR_SOURCE})
TARGET_LINK_LIBRARIES(msrcr
	${OpenCV_LIBS})

SET(LIB_MSRCR msrcr)

ADD_EXECUTABLE(MSRCR_test ./src/main.cpp)
TARGET_LINK_LIBRARIES(MSRCR_test 
	${LIB_MSRCR})
